package com.ruoyi.electricity.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;


@Data
@NoArgsConstructor
@AllArgsConstructor
public class ElectricityDataVo
{
    /** 设备编号 */
    @Excel(name = "设备编号")
    private String equipCode;

    /** 设备名称 */
    @Excel(name = "设备名称")
    private String equipName;
    /** 电流值 */
    @Excel(name = "电流值")
    private Double current;
    /** 电压值 */
    @Excel(name = "电压值")
    private Double voltage;
    /** 有功功率 */
    @Excel(name = "有功功率")
    private Double active;
    /** 电能 */
    @Excel(name = "电能")
    private Double paEnergy;
    /** 功率因素 */
    @Excel(name = "功率因素")
    private Double factor;
    /** 正常电流范围 */
    private String currentNormalRange;
    /** 预警电流范围 */
    private String currentWarnRange;
    /** 正常电压范围 */
    private String voltageNormalRange;
    /** 预警电压范围 */
    private String voltageWarnRange;
//
//    private double current_avg;
//    private double voltage_avg;
//    private double active_avg;
//    private double paEnergy_avg;
//    private double factor_avg;
//    private double current_max;
//    private double voltage_max;
//    private double active_max;
//    private double factor_max;
    /** 数据时间 */
    @Excel(name = "数据时间")
    private String dataTime;
    /** 入库时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "入库时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date insertTime;
    private String date;
    private String time;
}